﻿using Loki.IoC;
using Loki.IoC.Registration;

namespace Luna.Connectors.Google
{
    public class ConnectorInstaller : LokiContextInstaller
    {
        private static ConnectorInstaller google = new ConnectorInstaller();

        public static ConnectorInstaller Google
        {
            get { return google; }
        }

        public override void Install(IObjectContext context)
        {
            string googleName = ConnectorType.Google.ToString();

            context.Register(Element.For<GoogleSettingsManager>());

            //  context.Register(Element.For<IContactProvider>().Named(googleName).ImplementedBy<GoogleContactProvider>());

            /*context.Register(Element.For<IConnector>()
                .Named(googleName)
                .ImplementedBy<GoogleConnector>()
                .Overrides(Property<IConnector>.ForKey(x => x.Contacts).Value(googleName)));*/
        }
    }
}